// 根据医生名字获取病人信息
Mock.mock('/pages/getPatientByDoctor', 'post', function (e) {
    console.log('后端接收到的医生名字：')
    console.log(e.body)
    var message =  [
        {   
            cardNumber: '1234',
            name: '李四',
            age: '12',
            number: '420682199800000000',
            dept: '儿科',
            doctor: '张三'
        },
        {
            cardNumber: '1234',
            name: '李四ya',
            age: '12',
            number: '420682199800000000',
            dept: '儿科ya',
            doctor: '张三ya',
        }
    ]

    return message
})


// 获取所有药品
Mock.mock('/pages/seeDoctorMessages/getAllPills', 'post', function () {
    var message = [
        {
            number: '1111',
            name: '999感冒灵5'
        },
        {
            number: '112',
            name: '999感冒灵4'
        },
        {
            number: '133',
            name: '999感冒灵1'
        },
        {
            number: '144',
            name: '999感冒灵2'
        },
        {
            number: '1444',
            name: '999感冒灵3'
        }
    ]
    return message
})

// 模糊查询药品
Mock.mock('/pages/seeDoctorMessages/getMoHuPills', 'post', function (e) {
    console.log('后端接收模糊查询药品参数：')
    console.log(e.body)
    var message = [
        {
            number: '12445',
            name: '222感冒灵'
        },
        {
            number: '111',
            name: '22333感冒灵'
        },
        {
            number: '112211',
            name: '133感冒灵'
        },
        {
            number: '444',
            name: '00感冒灵'
        }
    ]

    return message
})


// 获取所有项目
Mock.mock('/pages/seeDoctorMessages/getAllPrograms', 'post', function () {
    var message = [
        {
            number: '1111',
            name: '查血'
        },
        {
            number: '112',
            name: '查肝'
        },
        {
            number: '133',
            name: 'B超'
        },
        {
            number: '144',
            name: '脑CT'
        },
        {
            number: '1444',
            name: '哈哈哈'
        }
    ]
    return message
})


// 模糊查询项目
Mock.mock('/pages/seeDoctorMessages/getMoHuPrograms', 'post', function (e) {
    console.log('后端接收模糊查询项目参数：')
    console.log(e.body)
    var message = [
        {
            number: '12445',
            name: '查查查血'
        },
        {
            number: '111',
            name: 'bbb超'
        },
        {
            number: '112211',
            name: '哈哈打针'
        }
    ]

    return message
})


// 提交所有
Mock.mock('/pages/seeDoctorMessage/submitAll', 'post', function (e) {
    console.log('前端提交的参数：')
    console.log(e.body)
    return {success: '成功'}
})